package com.mmall.pojo;

import java.util.Date;
import java.util.List;

public class Message {
    private Integer id;

    private Integer goodsId;

    private Integer fromUserId;

    private Integer toUserId;

    private String message;

    private Integer parentMessageId;

    private Date createTime;

    private Date updateTime;

    private List<Message> childrenList;

    private String to_user_nick_name;
    private String to_user_face;

    private String from_user_nick_name;
    private String from_user_face;

    private String createTimeText;

    public String getCreateTimeText() {
        return createTimeText;
    }

    public void setCreateTimeText(String createTimeText) {
        this.createTimeText = createTimeText;
    }

    public String getTo_user_nick_name() {
        return to_user_nick_name;
    }

    public void setTo_user_nick_name(String to_user_nick_name) {
        this.to_user_nick_name = to_user_nick_name;
    }

    public String getTo_user_face() {
        return to_user_face;
    }

    public void setTo_user_face(String to_user_face) {
        this.to_user_face = to_user_face;
    }

    public String getFrom_user_nick_name() {
        return from_user_nick_name;
    }

    public void setFrom_user_nick_name(String from_user_nick_name) {
        this.from_user_nick_name = from_user_nick_name;
    }

    public String getFrom_user_face() {
        return from_user_face;
    }

    public void setFrom_user_face(String from_user_face) {
        this.from_user_face = from_user_face;
    }

    public List<Message> getChildrenList() {
        return childrenList;
    }

    public void setChildrenList(List<Message> childrenList) {
        this.childrenList = childrenList;
    }

    public Message(Integer id, Integer goodsId, Integer fromUserId, Integer toUserId, String message, Integer parentMessageId, Date createTime, Date updateTime) {
        this.id = id;
        this.goodsId = goodsId;
        this.fromUserId = fromUserId;
        this.toUserId = toUserId;
        this.message = message;
        this.parentMessageId = parentMessageId;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Message() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(Integer fromUserId) {
        this.fromUserId = fromUserId;
    }

    public Integer getToUserId() {
        return toUserId;
    }

    public void setToUserId(Integer toUserId) {
        this.toUserId = toUserId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message == null ? null : message.trim();
    }

    public Integer getParentMessageId() {
        return parentMessageId;
    }

    public void setParentMessageId(Integer parentMessageId) {
        this.parentMessageId = parentMessageId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}